namespace Digitalmes.Application.Mes;

/// <summary>
/// 班次表
/// </summary>
public sealed class MdShiftDto : Dto
{
    /// <summary>
    /// 班次编号
    /// </summary>
    [Required, NotNull]
    [StringLength(32)]
    public string? ShiftCode { get; set; }

    /// <summary>
    /// 班次名称
    /// </summary>
    [Required, NotNull]
    [StringLength(32)]
    public string? ShiftName { get; set; }

    /// <summary>
    /// 开始时间点
    /// </summary>
    [Required, NotNull]
    [StringLength(8)]
    public string? BeginTime { get; set; }

    /// <summary>
    /// 结束时间点
    /// </summary>
    [Required, NotNull]
    [StringLength(8)]
    public string? EndTime { get; set; }

    /// <summary>
    /// 生效日期
    /// </summary>
    public DateTime EffectiveDate { get; set; }

    /// <summary>
    /// 失效日期
    /// </summary>
    public DateTime ExpiryDate { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string? UpdateUser { get; set; }
}
